<template>
  <div class="app-container">
    
  </div>
</template>

<script>
import hospitalSet from '@/api/hospitalSet'

export default {
  data() {
    return {
      total:0,
      current:1,
      limit:3,
      searchObj:{},
      list:[],
      selectedItems:[]
    }
  },
  created() {
    this.getList()
  },
  methods: {
    getList(){
      hospitalSet.getHospitalSet(this.current,this.limit,this.searchObj)
      .then(response =>{
        console.log("成功"),
        console.log(response),
        this.total=response.data,
        this.limit=response.data.size,
        this.current=response.data.current,
        this.list=response.data.records
      })
      .catch(error => {
        console.log(error)
      })
    }
  }
}
</script>
